package cn.progen.constant;

import java.util.HashMap;
import java.util.Map;

public class FiledsTypeTable {
	public  static Map<String, String> JAVATYPETABLE=new HashMap<>();
	static{
		JAVATYPETABLE.put("int", "java.lang.Integer");
		JAVATYPETABLE.put("tinyint", "java.lang.Integer");
		JAVATYPETABLE.put("double", "java.lang.Double");
		JAVATYPETABLE.put("decimal", "java.lang.Double");

		JAVATYPETABLE.put("float", "java.lang.Float");
		JAVATYPETABLE.put("smallint", "java.lang.Integer");
		JAVATYPETABLE.put("short", "java.lang.Boolean");
		JAVATYPETABLE.put("varchar", "java.lang.String");
		JAVATYPETABLE.put("char", "java.lang.String");
		JAVATYPETABLE.put("text", "java.lang.String");
		JAVATYPETABLE.put("longblob", "java.lang.String");

		JAVATYPETABLE.put("data", "java.util.Date");
		JAVATYPETABLE.put("datetime", "java.util.Date");

	}
	public  static Map<String, String> JDBCTYPETABLE=new HashMap<>();
	static{
		JDBCTYPETABLE.put("java.lang.Integer", "INTEGER");
		JDBCTYPETABLE.put("java.lang.String", "VARCHAR");
		JDBCTYPETABLE.put("java.util.Date", "TIMESTAMP");
		JDBCTYPETABLE.put("java.util.Float", "FLOAT");
		JDBCTYPETABLE.put("java.util.Double", "DOUBLE");
	}
}
